package cn.shopping.core.daomanager.immutable.impl;

import cn.shopping.common.daomanager.impl.CommonDaoManagerImpl;
import cn.shopping.core.daomanager.immutable.ImmutableGoodsFileDaoManager;
import cn.shopping.core.dbo.GoodsFileDO;
import cn.shopping.core.mapper.GoodsFileMapper;
import org.springframework.beans.factory.annotation.Autowired;

import javax.annotation.PostConstruct;
import java.util.Collection;
import java.util.HashMap;
import java.util.List;
import java.util.Map;


/**
 * 代码自动生成，请不要修改，切记！！！
 */
public class ImmutableGoodsFileDaoManagerImpl extends CommonDaoManagerImpl<GoodsFileDO,Long> implements ImmutableGoodsFileDaoManager {

        @Autowired
        private GoodsFileMapper goodsFileMapper;




        @PostConstruct
        private void init(){
           super.setCommonMapper(goodsFileMapper);

            Map<String,String> fieldMap=new HashMap<>();
            fieldMap.put(GoodsFileDO.ID,GoodsFileDO.DB_ID);
            fieldMap.put(GoodsFileDO.DB_ID,GoodsFileDO.DB_ID);

            fieldMap.put(GoodsFileDO.IS_DELETED,GoodsFileDO.DB_IS_DELETED);
            fieldMap.put(GoodsFileDO.DB_IS_DELETED,GoodsFileDO.DB_IS_DELETED);

            fieldMap.put(GoodsFileDO.GMT_CREATE,GoodsFileDO.DB_GMT_CREATE);
            fieldMap.put(GoodsFileDO.DB_GMT_CREATE,GoodsFileDO.DB_GMT_CREATE);

            fieldMap.put(GoodsFileDO.GMT_MODIFIED,GoodsFileDO.DB_GMT_MODIFIED);
            fieldMap.put(GoodsFileDO.DB_GMT_MODIFIED,GoodsFileDO.DB_GMT_MODIFIED);

            fieldMap.put(GoodsFileDO.CLF_GOODS_ID,GoodsFileDO.DB_CLF_GOODS_ID);
            fieldMap.put(GoodsFileDO.DB_CLF_GOODS_ID,GoodsFileDO.DB_CLF_GOODS_ID);

            fieldMap.put(GoodsFileDO.FILE_TYPE,GoodsFileDO.DB_FILE_TYPE);
            fieldMap.put(GoodsFileDO.DB_FILE_TYPE,GoodsFileDO.DB_FILE_TYPE);

            fieldMap.put(GoodsFileDO.UPLOAD_ID,GoodsFileDO.DB_UPLOAD_ID);
            fieldMap.put(GoodsFileDO.DB_UPLOAD_ID,GoodsFileDO.DB_UPLOAD_ID);

            fieldMap.put(GoodsFileDO.SEQ,GoodsFileDO.DB_SEQ);
            fieldMap.put(GoodsFileDO.DB_SEQ,GoodsFileDO.DB_SEQ);



            super.setFieldNameMap(fieldMap);
        }



        public List<GoodsFileDO> listByClfGoodsId(Long clfGoodsId, String... fieldNames){
            return this.goodsFileMapper.listByClfGoodsId(clfGoodsId,super.javaFieldNames2DataBaseNames(fieldNames));
        }

        public Map<Long,GoodsFileDO> mapByClfGoodsId(Long clfGoodsId, String... fieldNames){
            return this.goodsFileMapper.mapByClfGoodsId(clfGoodsId,super.javaFieldNames2DataBaseNames(fieldNames));
        }

        public Integer countByClfGoodsId(Long clfGoodsId){
            return this.goodsFileMapper.countByClfGoodsId(clfGoodsId);
        }

        public Integer updateNotNullFieldsByClfGoodsId(GoodsFileDO updateDO, Long clfGoodsId){
            if (super.doChecker != null){
                super.doChecker.checkWhenModify(updateDO);
            }
            return this.goodsFileMapper.updateNotNullFieldsByClfGoodsId(updateDO,clfGoodsId);
        }

        public Integer updateAllFieldsByClfGoodsId(GoodsFileDO updateDO,  Long clfGoodsId){
            if (super.doChecker != null){
                super.doChecker.checkWhenModify(updateDO);
            }
            return this.goodsFileMapper.updateAllFieldsByClfGoodsId(updateDO,clfGoodsId);
        }

        public Integer deleteByClfGoodsId( Long clfGoodsId){
            return this.goodsFileMapper.deleteByClfGoodsId(clfGoodsId);
        }



        public List<GoodsFileDO> listByInClfGoodsId(Collection<Long> clfGoodsIdList, String... fieldNames){
            return this.goodsFileMapper.listByInClfGoodsId(clfGoodsIdList,super.javaFieldNames2DataBaseNames(fieldNames));
        }

        public Map<Long,GoodsFileDO> mapByInClfGoodsId(Collection<Long> clfGoodsIdList, String... fieldNames){
            return this.goodsFileMapper.mapByInClfGoodsId(clfGoodsIdList,super.javaFieldNames2DataBaseNames(fieldNames));
        }

        public Integer countByInClfGoodsId(Collection<Long> clfGoodsIdList){
            return this.goodsFileMapper.countByInClfGoodsId(clfGoodsIdList);
        }

        public Integer updateNotNullFieldsByInClfGoodsId(GoodsFileDO updateDO, Collection<Long> clfGoodsIdList){
            if(super.doChecker != null){
                super.doChecker.checkWhenModify(updateDO);
            }
            return this.goodsFileMapper.updateNotNullFieldsByInClfGoodsId(updateDO,clfGoodsIdList);
        }

        public Integer updateAllFieldsByInClfGoodsId(GoodsFileDO updateDO,  Collection<Long> clfGoodsIdList){
            if(super.doChecker != null){
                super.doChecker.checkWhenModify(updateDO);
            }
            return this.goodsFileMapper.updateAllFieldsByInClfGoodsId(updateDO,clfGoodsIdList);
        }

        public Integer deleteByInClfGoodsId( Collection<Long> clfGoodsIdList){
            return this.goodsFileMapper.deleteByInClfGoodsId(clfGoodsIdList);
        }


        public List<GoodsFileDO> listByFileType(Integer fileType, String... fieldNames){
            return this.goodsFileMapper.listByFileType(fileType,super.javaFieldNames2DataBaseNames(fieldNames));
        }

        public Map<Long,GoodsFileDO> mapByFileType(Integer fileType, String... fieldNames){
            return this.goodsFileMapper.mapByFileType(fileType,super.javaFieldNames2DataBaseNames(fieldNames));
        }

        public Integer countByFileType(Integer fileType){
            return this.goodsFileMapper.countByFileType(fileType);
        }

        public Integer updateNotNullFieldsByFileType(GoodsFileDO updateDO, Integer fileType){
            if (super.doChecker != null){
                super.doChecker.checkWhenModify(updateDO);
            }
            return this.goodsFileMapper.updateNotNullFieldsByFileType(updateDO,fileType);
        }

        public Integer updateAllFieldsByFileType(GoodsFileDO updateDO,  Integer fileType){
            if (super.doChecker != null){
                super.doChecker.checkWhenModify(updateDO);
            }
            return this.goodsFileMapper.updateAllFieldsByFileType(updateDO,fileType);
        }

        public Integer deleteByFileType( Integer fileType){
            return this.goodsFileMapper.deleteByFileType(fileType);
        }



        public List<GoodsFileDO> listByInFileType(Collection<Integer> fileTypeList, String... fieldNames){
            return this.goodsFileMapper.listByInFileType(fileTypeList,super.javaFieldNames2DataBaseNames(fieldNames));
        }

        public Map<Long,GoodsFileDO> mapByInFileType(Collection<Integer> fileTypeList, String... fieldNames){
            return this.goodsFileMapper.mapByInFileType(fileTypeList,super.javaFieldNames2DataBaseNames(fieldNames));
        }

        public Integer countByInFileType(Collection<Integer> fileTypeList){
            return this.goodsFileMapper.countByInFileType(fileTypeList);
        }

        public Integer updateNotNullFieldsByInFileType(GoodsFileDO updateDO, Collection<Integer> fileTypeList){
            if(super.doChecker != null){
                super.doChecker.checkWhenModify(updateDO);
            }
            return this.goodsFileMapper.updateNotNullFieldsByInFileType(updateDO,fileTypeList);
        }

        public Integer updateAllFieldsByInFileType(GoodsFileDO updateDO,  Collection<Integer> fileTypeList){
            if(super.doChecker != null){
                super.doChecker.checkWhenModify(updateDO);
            }
            return this.goodsFileMapper.updateAllFieldsByInFileType(updateDO,fileTypeList);
        }

        public Integer deleteByInFileType( Collection<Integer> fileTypeList){
            return this.goodsFileMapper.deleteByInFileType(fileTypeList);
        }


        public List<GoodsFileDO> listByUploadId(Long uploadId, String... fieldNames){
            return this.goodsFileMapper.listByUploadId(uploadId,super.javaFieldNames2DataBaseNames(fieldNames));
        }

        public Map<Long,GoodsFileDO> mapByUploadId(Long uploadId, String... fieldNames){
            return this.goodsFileMapper.mapByUploadId(uploadId,super.javaFieldNames2DataBaseNames(fieldNames));
        }

        public Integer countByUploadId(Long uploadId){
            return this.goodsFileMapper.countByUploadId(uploadId);
        }

        public Integer updateNotNullFieldsByUploadId(GoodsFileDO updateDO, Long uploadId){
            if (super.doChecker != null){
                super.doChecker.checkWhenModify(updateDO);
            }
            return this.goodsFileMapper.updateNotNullFieldsByUploadId(updateDO,uploadId);
        }

        public Integer updateAllFieldsByUploadId(GoodsFileDO updateDO,  Long uploadId){
            if (super.doChecker != null){
                super.doChecker.checkWhenModify(updateDO);
            }
            return this.goodsFileMapper.updateAllFieldsByUploadId(updateDO,uploadId);
        }

        public Integer deleteByUploadId( Long uploadId){
            return this.goodsFileMapper.deleteByUploadId(uploadId);
        }



        public List<GoodsFileDO> listByInUploadId(Collection<Long> uploadIdList, String... fieldNames){
            return this.goodsFileMapper.listByInUploadId(uploadIdList,super.javaFieldNames2DataBaseNames(fieldNames));
        }

        public Map<Long,GoodsFileDO> mapByInUploadId(Collection<Long> uploadIdList, String... fieldNames){
            return this.goodsFileMapper.mapByInUploadId(uploadIdList,super.javaFieldNames2DataBaseNames(fieldNames));
        }

        public Integer countByInUploadId(Collection<Long> uploadIdList){
            return this.goodsFileMapper.countByInUploadId(uploadIdList);
        }

        public Integer updateNotNullFieldsByInUploadId(GoodsFileDO updateDO, Collection<Long> uploadIdList){
            if(super.doChecker != null){
                super.doChecker.checkWhenModify(updateDO);
            }
            return this.goodsFileMapper.updateNotNullFieldsByInUploadId(updateDO,uploadIdList);
        }

        public Integer updateAllFieldsByInUploadId(GoodsFileDO updateDO,  Collection<Long> uploadIdList){
            if(super.doChecker != null){
                super.doChecker.checkWhenModify(updateDO);
            }
            return this.goodsFileMapper.updateAllFieldsByInUploadId(updateDO,uploadIdList);
        }

        public Integer deleteByInUploadId( Collection<Long> uploadIdList){
            return this.goodsFileMapper.deleteByInUploadId(uploadIdList);
        }


        public List<GoodsFileDO> listBySeq(Long seq, String... fieldNames){
            return this.goodsFileMapper.listBySeq(seq,super.javaFieldNames2DataBaseNames(fieldNames));
        }

        public Map<Long,GoodsFileDO> mapBySeq(Long seq, String... fieldNames){
            return this.goodsFileMapper.mapBySeq(seq,super.javaFieldNames2DataBaseNames(fieldNames));
        }

        public Integer countBySeq(Long seq){
            return this.goodsFileMapper.countBySeq(seq);
        }

        public Integer updateNotNullFieldsBySeq(GoodsFileDO updateDO, Long seq){
            if (super.doChecker != null){
                super.doChecker.checkWhenModify(updateDO);
            }
            return this.goodsFileMapper.updateNotNullFieldsBySeq(updateDO,seq);
        }

        public Integer updateAllFieldsBySeq(GoodsFileDO updateDO,  Long seq){
            if (super.doChecker != null){
                super.doChecker.checkWhenModify(updateDO);
            }
            return this.goodsFileMapper.updateAllFieldsBySeq(updateDO,seq);
        }

        public Integer deleteBySeq( Long seq){
            return this.goodsFileMapper.deleteBySeq(seq);
        }



        public List<GoodsFileDO> listByInSeq(Collection<Long> seqList, String... fieldNames){
            return this.goodsFileMapper.listByInSeq(seqList,super.javaFieldNames2DataBaseNames(fieldNames));
        }

        public Map<Long,GoodsFileDO> mapByInSeq(Collection<Long> seqList, String... fieldNames){
            return this.goodsFileMapper.mapByInSeq(seqList,super.javaFieldNames2DataBaseNames(fieldNames));
        }

        public Integer countByInSeq(Collection<Long> seqList){
            return this.goodsFileMapper.countByInSeq(seqList);
        }

        public Integer updateNotNullFieldsByInSeq(GoodsFileDO updateDO, Collection<Long> seqList){
            if(super.doChecker != null){
                super.doChecker.checkWhenModify(updateDO);
            }
            return this.goodsFileMapper.updateNotNullFieldsByInSeq(updateDO,seqList);
        }

        public Integer updateAllFieldsByInSeq(GoodsFileDO updateDO,  Collection<Long> seqList){
            if(super.doChecker != null){
                super.doChecker.checkWhenModify(updateDO);
            }
            return this.goodsFileMapper.updateAllFieldsByInSeq(updateDO,seqList);
        }

        public Integer deleteByInSeq( Collection<Long> seqList){
            return this.goodsFileMapper.deleteByInSeq(seqList);
        }


}

